King waves as he leaves Sandringham church service