A daily vitamin D supplement could help reduce the symptoms of irritable bowel disease (IBD), a study has found.