Phase Transitions in Transfer Learning for High-Dimensional Perceptrons