Robust Anomaly Detection for Particle Physics Using Multi-Background Representation Learning