A quantified Tauberian theorem and local decay of $C_0$-semigroups