Volkswagen has issued a public apology after releasing a racially insensitive advertisement.