Cooperative cargo transportation by a swarm of molecular machines