From Ants to Robots: A Decentralised Task Allocation Model for A Swarm of Robots