Delay differential equations for the spatially-resolved simulation of epidemics with specific application to COVID-19