The operator of the Nectar loyalty card scheme has been sold to a Canadian marketing company for GBP368m (US$759m).