Being married triples the risk of men becoming obese, research suggests.