Apologies for the delay, but I have been without internet....
Many thanks for the advice in the earlier replies. I have made an appointment to see a solicitor to get their advice - I certainly think I need it.
I knew that what I posted would raise some further questions regarding 'what really happened' etc but what I posted is all I knew and all I still know. The words 'behaviour to women' came from the agent in a phone call - they were reading selected extracts from the email - and she wouldn't elaborate. I genuinely have no idea what this is all about, but I am sure of some things: The agent was feeding me one line about notice periods etc whilst having conversations with the client about how to avoid it.
The agent has worked with the client to terminate the contract .
I have been shafted.
The product I was delivering was not working out as planned. I wasn't able to deliver but there was not the buy-in from other senior permie staff who refused to provide input into development, and I was expected to sort that out. It has been a learning experience certainly.
A thing to note, for all those claiming there is 'no smoke without fire' is that during the contract, I did not have any conversations (formal or informal) or email exchanges about my behaviour, nor was there any other mention at any time. Nor has there ever been on any other contract to be honest, which is why I am so annoyed.