Some companies have mastered the digital transformation and have used technology to reinvent or grow their brands. Here’s what we can learn from them.