A North West NHS foundation trust has been fined over its inappropriate management of the use of bedrails at its hospitals.