Social capital and government in the production of public goods