Under Armour posts smaller loss than anticipated on e-commerce strength