The High Court has quashed search warrants for two properties linked to Andrew Mountbatten-Windsor after Thames Valley Police accepted they were issued on an incorrect legal basis.