Digital transformation offers huge opportunities — but has its challenges. Here are 5 tips on how to do it right.