CLASH-VLT: Strangulation of cluster galaxies in MACS J0416.1-2403 as seen from their chemical enrichment