A model of institutional formation within a rent seeking environment