Gaia-ESO Survey: Properties of the intermediate age open cluster NGC 4815