China replaces its top securities regulator, moving to reassure investors and end a market slump