Sports goods company adidas has risen above expectations with a 24% rise in second-quarter profit, helped by the recent football World Cup.