Railways to build walls on worst-impacted routes to contain cattle hits