Measurement of the CP-violating phase $\phi_s$ in $\overline{B}^0_s\rightarrow J/\psi \pi^+\pi^-$ decays