Pershing Square Holdings, the publicly traded hedge fund managed by Bill Ackman’s Pershing Square Capital Management, gained 4 percent in July, bringing its gain for the year to 11 percent — trouncing the Standard & Poor’s 500 stock index and most of its peers.The S&P 500 gained 6.5 percent for