An action plan has been drawn up to tackle issues including drugs and overcrowding at a South Yorkshire prison.