Hundreds flee homes in flooded Welsh city