Handheld, AI-powered device is the first of its kind and could help doctors detect skin cancer earlier, according to its maker.