Massmart, the South African retailer in which Wal-Mart Stores owns a 51% stake, has posted higher half-year profits.