Reconstructing signaling histories of single cells via perturbation screens and transfer learning