Canadian police say they have foiled a plot that would have seen an armed group carry out a public shooting spree in the city of Halifax on Saturday.