Statistical physics of immune networks