Profiles of dark haloes: evolution, scatter and environment