A sniffer dog has been successfully trained to detect a tree disease as part of a “groundbreaking” project to protect the UK’s woodlands.