South African retailer Massmart has booked an increase in annual profits on the back of improved sales.