University students who eat a handful of walnuts every day are less likely to suffer from mental health problems.