Theories of the origins of the state