President Tsai Ing-wen resigns as head of the governing DPP after its poor showing in local elections.