The report from Audit Scotland says one in nine hospital beds were occupied by patients who could have been discharged.