Australia's biggest cities are sweltering as thousands flock to the beach before a cool change brings a short and sharp autumn heatwave to an end.