The Duke and Duchess of Cambridge visited a family-run cacao farm after protests curtailed their original plans