Ashraf Ghani has been sworn in as Afghanistan's president after six months of deadlock amid a bitter dispute over electoral…