The Duke has attended celebrations in Durham to mark the 200th anniversary of the first journey on the Stockton and Darlington Railway.