In a sign of already shifting trade flows, China became Germany’s most important trading partner for the first time in 2016, overtaking the United States, which fell back to third place behind France, data Friday showed.