President Ashraf Ghani resigns