Agreement signed in Qatar's capital, Doha, could result in US troops leaving Afghanistan within 14 months.