New research shows that when companies do things like give to charity or reduce their carbon footprint, consumers perceive their products as less risky.