At least 24 people have been killed due to floods and landslides in Brazil's southeastern state of Sao Paulo.