Dynamics in nonlocal cosmological models derived from string field theory