The Attorney General has blamed the collapse of the alleged Chinese spying case on “out of date” UK espionage laws which he said were “not fit for purpose”.