Method and Apparatus for Detecting Traffic Anomaly, Device and Medium