Shadow Justice Secretary Nick Timothy said the number of accused diverted into psychiatric care rather than face a trial has almost doubled over six years.