Flooding in the Australian state of New South Wales has cut off roads and left more than 2,000 people in the region stranded.