Sporting goods giant Nike posted a narrow increase in second quarter profit, as a double-digit surge in revenues was offset by falling margins.