Former Malaysian prime minister Mahathir Mohamad has resigned from his position as chairman of Proton Holdings and chairman of the company's UK sports car subsidiary Group Lotus.