Self-Contrastive Weakly Supervised Learning Framework for Prognostic Prediction Using Whole Slide Images