Failure-tolerant Distributed Learning for Anomaly Detection in Wireless Networks