European stocks’ outperformance over the US has taken a surprising turn this year, with technology names in the driving seat.