Are there restrictions for foreigners to purchase an apartment?

No