Men's wear retailer Jos A Bank Clothiers has booked a 12.7% rise in second-quarter net profit, boosted by better-than-expected online sales.