The BAHAMAS project: effects of a running scalar spectral index on large-scale structure