Afghan president hails insurgents’ announcement, which comes months after landmark deal with US.