A transport model for the diffusive shock acceleration and modulation of anomalous cosmic rays in the heliosphere