Cosmic microwave background bounds on primordial black holes including dark matter halo accretion