Adaptive social immunity in leaf-cutting ants