Cepheids as tracers of star formation in M32 I. Observations and identifications