At least 40 people have died due to drowning in France as the country experienced its hottest day since records began