US department store retailer Macy's recorded an increase in earnings in the fourth quarter but results missed analyst expectations as harsh winter weather hit January sales.