Former president John Mahama, Ghana's main opposition leader, tried twice before to win back the country top post.