Thousands of people have been told to leave their homes after heavy rain results in severe damage to a dam wall above the town.