A festival which celebrates an age-old tradition of bootlegging on Yorkshire's canals is marking its 40th anniversary.