South African retailer Woolworths Holdings has booked a rise in underlying earnings on increasing sales as it announced the retirement of its CEO.