Retailers face big challenges, but there are also lucrative opportunities for those who get it right.