The new trains will be phased in across the core valley lines, replacing Transport for Wales' (TfW) older trains.