Sydney’s punishing heatwave gave way to rain and storms as the predicted cool change rolled into the city, slashing temperatures.