US retailer Dick's Sporting Goods has seen its second-quarter earnings fall due to charges tied to its investment in UK sporting goods firm JJB Sports.