Theories of collective behaviour