Bridges have collapsed, roads have submerged and thousands of families have been cut off after heavy rains and flooding lay waste to parts of Bangladesh.