US grocery retailer Albertsons has posted a fall in quarterly profit, hit by competition from Wal-Mart and weak sales.