Parents may be able to cut the risk of their child developing allergies by exposing them to the popular legume early in life.