Primary-school class composition and the development of social capital