Early and late-time cosmic acceleration in non-minimal Yang–Mills-f(G) gravity