Malaysian PM Mahathir Mohamad submits resignation to the king