Evidence of a Significant Intermediate-Age Population in the M31 Halo from Main-Sequence Photometry