Urinary tract infections can be treated more quickly using a new DNA sequencing device, according to research.