The US and South Korea have gone ahead with joint military exercises despite threats from North Korea.