Hansi Flick's Barcelona returned to winning form in La Liga, defeating Mallorca 5-1 with two goals from Raphinha.