The E-MOSAICS project: simulating the formation and evolution of galaxies and their globular cluster populations across full cosmic history