Afghanistan 'agrees Taliban deal'