Spain says it has dismantled an extremist cell behind the recent terrorist attacks in Catalonia, which were claimed by the Takfiri ISIS group.