Wall Street registers fifth straight quarterly gain