A Distribution Semantics for Probabilistic Term Rewriting