On a trip to Beijing, the German chancellor said he aimed to reduce his country’s ballooning trade deficit with China.