Record flooding over the past month in southern Brazil has killed 163 people and displaced around 600,000 more.