The random-walk representation of classical spin systems and correlation inequalities