A rail union is to hold a series of protests highlighting claims of staff shortages at ticket offices.