Addressing Task Forgetting in Federated Learning for Anomaly Detection