NBC: Taiwan president resigns as party leader after election loss