Residents in regional New South Wales have spent an anxious night waiting and preparing for the worst as flooding