China replaces top regulator as it attempts to end stock mar