Isotopic trichotomy of main belt asteroids from implantation of outer solar system planetesimals