Convenience food group Greencore has agreed a pay deal with UK workers at its cake facility in Hull, putting an end to a long-running dispute at the site.