Understanding the Gain from Data Filtering in Multimodal Contrastive Learning