A persistence-based Wold-type decomposition for stationary time series