Heavy rains near Sydney bring worst floods in 50 years