Environmental effects in the interaction and merging of galaxies in zCOSMOS