An antibiotic used to treat infective diarrhoea could be an effective drug for a type of inflammatory bowel disease, a new study has found.