Afghan president Ghani says he left country in order to avoid bloodshed