Hundreds of farmers came together in a North Yorkshire market town to show their support for a national day of protest over the government’s agricultural policy.