String-inspired cosmology: a late time transition from a scaling matter era to a dark energy universe caused by a Gauss–Bonnet coupling