Philippe Coutinho, Barcelona, Liverpool