The German car giant has apologised and withdrawn a series of adverts after a racism row.