Spanish doctors are warning children and the elderly to stay indoors in the afternoon due to continuing record-breaking temperatures.