Goldman is hiring a team to build a consumer and small business lending platform. The move is part of a broader shift on Wall Street as regulation and capital rules crimp profits at other units of the bank.