Individual adaptation allows collective path-finding in a robotic swarm