The link between cognitive and immunological development