The capacitors in the circuit are there for smoothing of the power rail and to reduce any voltage spikes feeding back into the power supply. I would recommend using all the capacitors shown. Place the 100nF capacitors as close as possible to the supply pins of each DRV8825.