ScotRail workers and staff on the Caledonian Sleeper are being balloted for strike action in the wake of a pay offer union bosses have branded as “derisory”.