The Economic Theory of Social Institutions