Man’s prosecution singled out as example of ‘unacceptable’ delays caused by old criminal legal aid system