Uncertainty over Brexit and the trade war between the US and China slowed down the export-oriented German economy.