Sir Sadiq Khan is looking at whether to provide Londoners with flexible working hours during heatwaves as parts of Britain are set to swelter with temperatures forecast to hit 34C.