Morocco said on Wednesday it has broken up a "terrorist cell" linked to the Islamic State group that authorities believe was planning attacks in the north of the country.