CroTad: A Contrastive Reinforcement Learning Framework for Online Trajectory Anomaly Detection