Rail line reopened by Scotrail after person hit by train