Rail replacement buses will operate on Glasgow, Kilmarnock and Ayrshire routes during major engineering works.