The country’s record trade surplus is likely to feed criticisms from the U.S. and elsewhere that Germany exports too many of its machine tools, chemicals, and cars, while failing to reinvest the proceeds.