The PAU survey: photometric redshifts using transfer learning from simulations