An annual study has ranked Minneapolis and St. Paul among the best places in the U.S. to celebrate the Fourth of July.