Finite-dimensional representations for controlled diffusions with delay