Hierarchy Amidst Anarchy: Transaction Costs and Institutional Choice