Heavy rains have caused floods and landslides , forcing authorities to declare a state of emergency in the capital city of Caracas and the country 's northern provinces .