Controlled diffusions with constraints