Tap water polluted with faecal matter could be the cause of mystery stomach problems, according to new research.