Communities, networks and social capital