The role of high-energy protons and electrons in powering the solar white-light flare emission