Exploring leptophilic dark matter with NA64-μ