The UK records temperatures of over 40C for the first time