Due to a shortage of aged care beds, thousands of elderly people are left stranded in public hospitals.