Human error caused the sinking of a New Zealand navy ship off the coast of Samoa, an inquiry finds