Hierarchical uncertainty estimation for learning-based registration in neuroimaging