Divorce

I am a married women with 2 kids. We were a happy happy family before but now my husband want divorce from me as he thought I am having an affair with his close friend. Actually the problem is before marriage I was attracted to that person but was just the attraction no one said anything to each other that all. Later I got married but my husband and that person were close friends so he used to come but i never spoke with him as my ex or I am having any feelings abut him never. Cheating on my husband never come in my mind because I love him a lot but now. But that person spoke smithing about me at my back then he got dout and he check my mails there were mails and uska doubt pakka ho gaya ki i am having affair.but aisa nahi hai. My mistake was I used to speak with him after marriage also but no personal in general only that to sometime but tab bhi mere dimag me nahi aaya ki isaka matalab affair ho sakta hai it 10 saal purani bat hai and now my husband is feeling cheated and he doesn't want to stay with me. What should I do. I don't want to leave my family I love him a lot plz help