Ashraf Ghani says he has not pledged to free 5,000 militants, as stated in a key US-Taliban deal.