At least 23 people have died after torrential rainfall triggered severe flooding in the Brazilian state of Minas Gerais.