Sydneysiders head to beaches in heatwave