The ACS Virgo Cluster Survey. XV. The Formation Efficiencies of Globular Clusters in Early-Type Galaxies: The Effects of Mass and Environment