Tackling the Waves of COVID-19: A Planning Model for Intrahospital Resource Allocation