The Prince of Wales says he wants to stop sexual harassment against women in the armed forces.