President Tsai Ing-wen resigns as head of the ruling DPP after her poor performance in local elections.