Primordial Magnetic Fields and the Peccei-Quinn Scale