CATNet: Cross-event Attention-based Time-aware Network for Medical Event Prediction