SAN FRANCISCO — Elon Musk’s overhaul of Twitter has been accompanied by an increase in digital harassment of religious and ethnic minorities in some of its largest markets outside the United States — and it’s beginning to wreak havoc in the physical world as well, according to current and former employees and experts studying the issue.