Five-time winners Barcelona took an early lead through Lamine Yamal before Raphinha continued his fine goalscoring form with a second-half brace.