Real Madrid legend Luka Modric has become an "investor and co-owner" of Championship club Swansea City.