SAN JOSE, Calif.—U.S. forward Megan Rapinoe will retire after this season, the 38-year-old said on Saturday, days before she leaves for the Women’s World Cup in Australia and New Zealand. Ms. Rapinoe will compete in her fourth World Cup when the tournament kicks off on July 20, and said she will hang up her cleats…