At least 21 people have died after heavy rains caused deadly flooding in the Brazilian state of Bahia.