Modelling the irreversible response of magnetically ordered materials: a Preisach-based approach