Heineken has pulled a television advert in the US amid a social media backlash that culminated in a hip-hop artist accusing the brewer's marketing team of being deliberately racist.