Dozens were accused of stealing money, with some jailed, after the Post Office introduced a new IT system.