An efficient probabilistic hardware architecture for diffusion-like models