Zlatan Ibrahimovic has bought a stake in Swedish club Hammarby amid transfer links with a number of clubs.