Several countries including the UK and Switzerland have posted record June temperatures, with deaths reported in France.