Iran has hosted the first significant talks in months between the Taliban and Afghan government representatives.