A mathematical model of self-organisation in football