China stocks end higher, small caps bolster sentiment