Recorded incidents of violence and harassment against passengers and rail workers showed a sharp increase in the year to March.