A senior adviser to the Duke of York told an alleged Chinese spy later banned from the UK that Andrew’s Newsnight interview had been “ill advised”, newly released documents show.