AdaCap: An Adaptive Contrastive Approach for Small-Data Neural Networks