Stomach cancer could one day be diagnosed by a simple breath test, ruling out the need for an unpleasant endoscopy, according to a new study.