The JCMT Nearby Galaxies Legacy Survey X. Environmental Effects on the Molecular Gas and Star Formation Properties of Spiral Galaxies