I suspect all of this well-meaning advice is a bit late for the OP.
Anyway, I would caution people once again to take full professional advice before embarking on any such tax saving scheme.
There are probably unexpected hooks.
For example, if you take a property into ownership via a limited company you will probably have to produce annual accounts which costs a fair amount, you will have to take any income from the property into your personal finances either as salary or a share dividend, you may not be able to get a mortgage, you may lose various other tax benefits, and you may get an unwelcome surprise for example from the VAT man when your company sells a property to a private individual, or a bill for advance corporation tax on expected rental income for the coming year...... or the tax man might even try to charge you for living in "your own holiday house" as a benefit in kind on your personal income tax if you do not pay your own company rent for the time you stay there.
it isn't as straight forward as some would seem to suggest, as there are pros and cons to every international tax decision. Some countries even ignore the details of the construction and merely look at the facts of the case, so if it looks like you own something you really do own it for tax purposes, whether or not there are shadow companies and smoke and mirrors in the way.
Having said that, a friend of mine uses something like the following construction:
He is a national of country X. He lived and worked in country Y and had a fair bit of cash in a holding company registered there. He moved to country Z. Country Z has restrictions on repatriating capital. So he bought his house personally in country Z, but using a mortgage provided by his own holding company located in country Y (with a proper contract written with approx commercial rates and terms of course).
Advantage is that when he sells the house in country Z, he still has a large debt to his holding company in country Y which can be offset against the current value on his house in country Z, so he has less restrictions on any capital he can repatriate. Disadvantage is that the mortgage interest that he pays from country Z to his holding company in country Y counts as company income, and thus is liable for corporation tax in country Y if the company makes a profit. However, due to other tax breaks he can still take a salary from his holding company in country Y at a preferential rate of income tax (due to the particular international tax agreements between country Y & Z) negating the profit in his company and making the whole construction more attractive.
It isn't for everyone by any means, but it is 100% legal and above board (checked with accountants and the tax authorities in country Y & Z) and it is tailored to his particular circumstances and wishes, which is really key to the whole.