The World Bank has warned that the economies of developing countries could collapse because of the rise of automation and robotics.