Men with the highest intake of sugar had a 23% increased chance of suffering a common mental disorder after five years, the study found.