Gravitational models with non-local scalar fields