Raphinha and Lamine Yamal both scored twice as Barcelona beat Rayo Vallecano to make it three wins out of three in La Liga.