From spectral cluster to uniform resolvent estimates on compact manifolds