Malls adding apartments to offset dwindling numbers of shoppers