Baseball’s long season and ballpark rituals give brands rare opportunities to build lasting connections with loyal fans.