Sydney residents have woken up to flooded homes as a “hazardous” and “scary” swell smashes parts of the city’s iconic beaches.