UK will introduce legislation to quash convictions of those affected by a Post Office scandal