Buckingham Palace has issued a statement after Prince Harry lost his legal appeal over the level of security he is entitled to when in the UK.