Emergence of metapopulations and echo chambers in mobile agents