The U.K. has recorded its hottest day of the year, with temperatures hitting 38.1 degrees Celsius in west London.