Heatwave hits Western Europe hard as temperatures reach 40C