Officials recommend avoiding exposure to the sun, say the elderly and those with chronic health problems should take particular care; temperatures to peak on Thursday