The President of Kosovo, Hashim Thaci, has announced his resignation, following his indictment on charges of war crimes.