Goldman Sachs, one of the most venerable banks on Wall Street, has announced it is laying off as many as 3,200 employees — as the bank tries to navigate a challenging economic environment.