A Self-supervised Approach to Hierarchical Forecasting with Applications to Groupwise Synthetic Controls