European stocks end higher except UK; S&P, Nasdaq gains in US