Germany is the only member of the G7 group of advanced economies that has failed to grow for the past two years.