A doctor developing a new, hand-held ultrasound device used it to discover his own cancer, hailing the technology as a “time machine”.