Periodic behaviour and stochastic fluctuations of solar activity: Proper Orthogonal Decomposition analysis