At least 27 people were killed by landslides caused by heavy rains in a mountainous area of the Brazilian state of Rio de Janeiro.