Dark energy in modified Gauss-Bonnet gravity: Late-time acceleration and the hierarchy problem