Modelling of Hysteresis in Multidomain Magnetic Nanostructures