Effect of disorder on relaxation in the one-dimensional Glauber model