Resistive memory with a thermally insulating region