Properties of dark matter haloes as a function of local environment density