Statistics for Galaxy and Mass Assembly (GAMA): Mid-infrared properties as tracers of galaxy environment