Taliban say ready for talks with groups resisting ‘foreign occupation’