Pathogen-specific social immunity is associated with erosion of individual immune function in an ant