Spy agencies have 'gaps' in foreign interference accountabil