Inappropriate hospital stays and association with lack of homecare services