The ruling party in South Korea has lost its majority in parliament after elections aimed at boosting its position, exit polls suggest.