Rio de Janeiro has recorded its hottest day in at least a decade when temperatures reached 44 degrees Celsius (111 F) as residents try to cool off in the ocean or under public showers.