Landslides and flooding caused by heavy rains are to blame for the deaths of at least 19 people in Brazil’s most populous state, authorities say.