CARLA: Self-supervised Contrastive Representation Learning for Time Series Anomaly Detection