Slowing economic growth dents outlook for corporate earnings, Goldman Sachs said