US retailer Dick's Sporting Goods has booked a drop in second-quarter earnings as the restructuring of its golf business weighs on the business.