ModuleFormer: Modularity Emerges from Mixture-of-Experts