Stock market today: World shares are mostly higher as the S&P 500 inches near 5,000