Adam Neumann, the embattled founder of office-sharing start-up WeWork, agreed to give up the CEO job and majority voting control under pressure from major investors.