DACAD: Domain Adaptation Contrastive Learning for Anomaly Detection in Multivariate Time Series