Sensitivity of the COHERENT experiment to accelerator-produced dark matter