Retailer Foot Locker posted second quarter profits ahead of expectations, boosted by lower than anticipated markdowns.