Hedge funds see opportunity in battered New York, San Francisco apartment markets