Thousands flee flooded homes after Ukraine dam destroyed