A microscopic model of the Stokes–Einstein relation in arbitrary dimension