First-quarter profit at TJX Cos Inc rose 21% as the off-price apparel retailer boosted margins on improved inventory management.