Rail passengers in Scotland faced major delays and cancellations during Monday evening's rush hour after a swan was found on the line at the country's busiest railway station.