Invariable generation of groups of finite rank