China’s capital city and the nation’s financial hub are stepping up measures to curb pollution as high levels of smog shifted south along the coast.