The former president, long dismissed as yesterday’s man, has become the improbable vessel of hope for millions in the poverty-stricken country