North Korea has launched an investigation into how a new warship ended up on its side and taking on water as leader Kim Jong Un looked on in dismay.