Communities on the U.S. Gulf Coast distributed sandbags and closed beaches as Tropical Storm Bertha threatened to bring flooding and strong winds Wednesday from the Florida Panhandle to Louisiana.