Mr. Trump said on Twitter just after 11:30 p.m. that he would leave his businesses before his inauguration and that his grown sons, Eric and Donald Jr., along with other executives, would manage them.