Prince William announces he is officially leaving the military