Tendency-distance models of social cohesion in animal groups