Severe flooding has forced thousands of people from their homes in Mozambique, with some residents rescued from rooftops, as rising waters submerged entire settlements.