Panchromatic Hubble Andromeda Treasury XIII: The Cepheid period-luminosity relation in M31