Perturbation series at large orders in quantum mechanics and field theories: Application to the problem of resummation