Temperature-induced structural transitions in self-assembling magnetic nanocolloids