Counterfactual Data Augmentation with Contrastive Learning