Chemicals produced by vegetables such as kale, cabbage and broccoli could help to maintain a healthy gut and prevent colon cancer, a study has found.