Parts of the Duke of Sussex’s appeal against a High Court ruling related to the level of security he is given when he is in the UK will be held in private, the Court of Appeal has ordered.