A theoretical framework for immune responses and predisposition to helminth infection