Breath tests could detect cancer at an early stage, according to a new study using sensors and artificial intelligence.