Goldman Sachs plans layoffs and hiring slowdown as it reveals its new AI push.