The bank has struck an agreement to transfer clients and their assets from the unit known as Marcus Invest to Betterment, a $45b digital investment-advisory firm. While the deal price is expected to be immaterial, it’s another piece of the consumer empire Goldman once dreamed of that the bank is now scaling back.