Half a month’s rain in 24 hours floods UK as heatwave turns to washout