Trains on parts of the South Wales mainline, including across the Vale of Glamorgan, are being replaced by buses for the week.