Bolivian president announces resignation amid accusations of election fraud