The Fourth of July ranks among the most stressful days of the year for dogs. Here’s what science says actually helps them.