BJ's Wholesale has booked a drop in fourth-quarter and full-year earnings as costs related to store closures and restructuring charges dented margins.