Market Regimes and Herding Behavior in Chinese A and B Shares