Data from Australia's most populous state reveals people are staying in hospital much longer than necessary while waiting for aged care or disability support.