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