A Royal Navy Commanding Officer was removed from their post but not sacked after a review identified workplace concerns.