Arrest of two journalists over 'stolen' document has 'grave implications for press freedom', court told