A Lancashire farming business has been fined and ordered to pay over £10,000 for twice polluting a watercourse and violating slurry storage regulations.