Measurement of the high-mass Drell-Yan cross section and limits on quark-electron compositeness scales