Prime Minister Theresa May has accused the British Medical Association of "playing politics" after a five-day junior doctors' strike was announced.