US private equity group Lone Star has taken control of the bulk of Spanish lender CaixaBank's real estate business worth around €7 bn.