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