Neighbourhood histories and educational attainment