Implications of CDF $W$-mass and $(g-2)_\mu$ on $U(1)_{L_\mu-L_\tau}$ model