US retail giant Safeway has shrugged off a dip in fourth-quarter earnings to post a rise in annual profits.