Pressure from e-commerce and changing spending habits is pushing empty shopping centres in the UK toward housing, healthcare and leisure uses.