California voters have rejected a measure on the November ballot that would have raised the minimum wage for most workers to $18 an hour.