UK surveillance agencies illegally kept data on British citizens' communications, spying court finds