5.-. (1) Section 4 of this Act does not apply to personal data- (a) kept for the purpose of preventing, detecting or investigating offences, apprehending or prosecuting offenders or assessing or collecting any tax, duty or other moneys owed or pay-able to the State, a local authority or a health board, in any case in which the application of that section to the data would be likely to prejudice an