Thousands flee Sydney homes as floods worsen