Around 10,000 trainee doctors resign in S. Korea, gov't warns of legal action