UK bakery retail chain Greggs has said its like-for-like sales showed a gradually improving trend during the second half of the year, as it recovered from the impact of the summer heat wave.