Learning-Based Latency-Constrained Fronthaul Compression Optimization in C-RAN