Severe weather in New South Wales has caused flash flooding in parts of the state and a landslide in Sydney's north.