A formally exact field theory for classical systems at equilibrium