H. Poincaré, Sur une théorème de M. Liapounoff relatif a l’équilibre d’une masse fluide, Comptes Rendus de L’Academie des Sciences 104, 622–625 (1887).
As discussed by G.C. Evans, Poincaré assumes tacitly that there do exist one or more bodies of a given volume, with smooth boundaries, which provide relative minima for the electrostatic capacity $C$ with respect to neighboring forms; and his treatment amounts to a proof that among these the sphere provides the absolute minimum. (Note that the Coulomb energy $U=Q^2/2C$, so minimal $C$ corresponds to maximal $U$ for given total charge $Q$.)
A complete proof, without this assumption, was given by G. Szegö, Über einige Extremalaufgaben der Potentialtheorie (1930).