The UK is bracing for one of its most extreme heatwaves on record, with temperatures forecast to exceed 35 degrees Celsius and potentially reach 40C.