Long term effects of early adversity on cognitive function