Hackers stole money from about 20,000 customers of a British bank over the weekend — an unprecedented strike that cybersecurity experts said should be a cautionary tale for bank-account holders in the United States.