Spain sets temperature records in heatwave, UK swelters