Floods and landslides caused by torrential rain in Indonesia's North Sumatra province have killed at least 34 people.