Tropical storm Ana caused widespread flooding in Madagascar, including in the capital city, raising the death toll from recent rains to 34 people and displacing tens of thousands, officials said.