ReliCD: A Reliable Cognitive Diagnosis Framework with Confidence Awareness