Refined black hole ensembles and topological strings