Torrential weekend rains have pounded the Brazilian states of Rio de Janeiro and Espirito Santo, leaving at least 25 people dead.