A New Zealand military inquiry has found a lack of training and experience were among factors that led to the sinking of a navy vessel off the coast of Samoa.