Social institutions and access to resources