Prince William to leave military