Online Learning for Sparse PCA in High Dimensions: Exact Dynamics and Phase Transitions