Under Armour’s losses were wider than expected, and the outlook was below forecasts as rising costs take a bite.