Contrastive Representation for Data Filtering in Cross-Domain Offline Reinforcement Learning