The former Wall Street executive, whose lawyer said had a gambling addiction, admitted to defrauding friends, relatives and a billionaire’s foundation.