The Chancellor has told the House of Commons that the ?500 million Restoring Your Railway fund has been cancelled.