Bouncing and accelerating solutions in nonlocal stringy models