LATAM Airlines posts loss as currency depreciation weighs