The sum of social relations is too manifold, abstract, and subtle to grasp directly, and the demands made of individuals by society too stringent for easy acquiescence. A society therefore must be represented to its members by some emblem of its scope and authority, such as a totem. We see here a striking example of circular thinking. It is highly misleading for any theory of the origins of religion to stipulate that the existence of some sort of powerful god-like societal intelligence is required in order for that society's citizens to be able to contemplate of the possible existence of gods. Besides that, the facts the argument uses are clearly in error.
Societies are neither organisms nor are they thinking beings.
Societies are never organized perfectly for their own needs. Cultural evolution, like the biological version, can only work with materials at hand. We cannot credit the existence of social cohesion to religion. In large, complex societies such as ours, there are many religions, many allegiances. Here, religion and society differ sharply.