Vietnam 's official news agency says heavy rain and widespread flooding inundated thousands of homes and severely damaged roads and other infrastructure .