Elon Musk late Tuesday said he will resign as chief executive of Twitter once he finds a replacement, in apparent…