Heavy flooding has killed at least 35 people and forced more than 30,000 out of their homes across Brazil,