Google DeepMind is funding research into the potential dangers of situations where millions of different AI agents interact with each other online.