US grocery retailer Weis Markets has reported higher profit for the fourth quarter and full year, helped by strong sales of perishable goods.