Married people are less likely to be depressed than those who are single, according to the findings of a global study.