Anheuser-Busch is to end its long-running sponsorship of one of NASCAR's flagship series in the US.