The B terminals in the scematic refer to the 'bulk' or 'body' connection of these devices, ie the substrate underneath them. Although capacitors and (poly) resistors do not connect to diffusion you should still connect these terminals in the schematic to whatever potential the substrate below them is tied to, vdd if over nwell and gnd if not. Often designers will specify that capacitors should be built over a (empty) nwell to give them some isolation from noise in the substrate.