Heatwave reaches 31.9C in Galway amid storm warnings