Trains were delayed by apparent cyberattacks as hackers posted the phone number of the country’s supreme leader.