Classes have been cancelled for 5,000 students because of staff shortages after more than 2,000 of the city's teachers called in sick on Monday.