Germany's gross domestic product returned to modest growth in the third quarter staving off a widely-feared recession in Europe's largest economy.