The Gaia -ESO Survey: Lithium enrichment histories of the Galactic thick and thin disc