James Rodriguez, Bayern Munich, Liverpool