Malls are struggling to reinvent themselves as shoppers move online.