Goldman is offloading the lending platform less than two years after acquiring it as part of a broader retreat from the mass market. The Wall Street giant’s foray into consumer lending proved costlier than expected, and the company said it pushed too quickly into the effort, contributing to missteps.