The multicomponent 2D Toda hierarchy: discrete flows and string equations