A train buff has spent more than 30 years building a working miniature railway track in his own back garden.