Hierarchical biomarker thresholding: a model-agnostic framework for stability