Japan has returned to Taiwan a ceremonial sword that once belonged to the country's former President Chiang Kai-shek.