Cut-price retail group The TJX Companies posted a 31% increase in second quarter profits, with all its businesses registering solid revenue growth.