Problems at two US regional banks have made investors nervous and triggered a sell-off in shares.