Patients waiting around to be discharged are costing Victorian hospitals millions of dollars each year.