Magistrates ‘asked to stop jailing criminals’ for several weeks to ease pressure on prisons5 months ago