UK records hottest day in August in 17 years