At least 32 people have been killed in landslides and flooding caused by heavy rain in the Brazilian state of Minas Gerais.