Gaia -ESO Survey: Detailed elemental abundances in red giants of the peculiar globular cluster NGC 1851