Prediction of hierarchical time series using structured regularization and its application to artificial neural networks