Afghan President Ashraf Ghani and his rival Abdullah Abdullah have agreed to a power sharing deal, ending months of political gridlock following September's presidential election. The standoff has been a stumbling block for a peace deal with the Taliban.