Thousands of people were stranded as flood waters isolated several communities in the eastern states of New South Wales and Queensland , as well as the tropical Northern Territory , which was lashed by a cyclone over the weekend , emergency services reported .