Being married triples the risk of obesity in men, research suggests.