Torrential rains have battered South Korea, triggering flash floods and landslides that have killed at least 14 people, according to authorities.