Thousands of prisoners will be released up to a year before the end of their sentence in major plans announced yesterday