Prince Andrew’s attendance was notable after he was absent from the royals’ Christmas service amid scrutiny of his links with an alleged Chinese spy.