Risk factors of falls in elderly population in acute care hospitals and nursing homes in north Italy: a retrospective study