The beta function method for resummations in field theory