Explaining $h\toμ^\pm\tau^\mp$, $B\to K^* μ^+μ^-$ and $B\to K μ^+μ^-/B\to K e^+e^-$ in a two-Higgs-doublet model with gauged $L_μ-L_\tau$