Generative Pretrained Hierarchical Transformer for Time Series Forecasting