North Korea has arrested three officials said to be responsible for a major blunder during the launch of a new warship, state media has said.