MEDEC: A Benchmark for Medical Error Detection and Correction in Clinical Notes