The announcement that Prince Philip was to stand down from public engagements showed that Buckingham Palace has learned how to play the media at its own game.