Estimating the COVID-19 epidemic trajectory and hospital capa