Search for new long-lived hadronically-decaying particles produced in association with a Z boson with the ATLAS detector at the LHC