More than one in five vehicle MOT tests in Britain ended in failure last year, new figures show.