Elliptic curves retaining their rank in finite extensions and Hilbert’s Tenth Problem for rings of algebraic numbers