A study explains why coffee is good for digestive disorders