Prince William has decided to leave operational service as a search and rescue pilot