CF-Seg: Counterfactuals meet Segmentation