Higher sales at its Banana Republic and Old Navy chains have helped Gap Inc to a 4% rise in fourth quarter earnings - but the specialty clothing retailer warned that soaring costs are likely to dent operating margins in the year ahead.