A 26-year-old man has been arrested for threatening online to "behead" President Tsai Ing-wen the day before January's elections.