UK car production has slowed, according to industry figures, in the latest sign of a struggling sector.