Tropical Storm Franklin formed north of the Bahamas on July 21 and moved steadily across the western Atlantic while coming close to Bermuda on July 26 . The storm formed over the Bahamas on July 21 then moved north erratically , approaching Bermuda on July 26 .