Legal records have emerged which show why police wanted to search the royal’s home and what they were looking for.