Ford announced it will end car making in Germany after a century as it took a swipe at net zero rules for handing an advantage to Chinese rivals.