Strikes in the NHS could be on the cards in January after resident doctors in Scotland voted overwhelmingly in favour of industrial action.