Russia has become the first country to formally recognise the Taliban government in Afghanistan.