The chief financial officer of Greggs is set to step down later this year after 28 years with the bakery giant, with a replacement named.