Nanosecond anomaly detection with decision trees for high energy physics and real-time application to exotic Higgs decays