CVS joined Walgreens, Walmart and Rite Aid in pulling the generic version of the drug from store shelves after the FDA said a substance in the medication could cause cancer.