Off the pill and still not losing?

Options
I was taking the Diane35 pill because of hormonal imbalances but it wasn't working for me so I stopped taking it about four months ago. While I was on it, I retained water and was very bloated and putting on weight. Even though I've stopped taking it, I still can't lose weight. Before I started taking it, I lost 5lbs in a month and now I've been exercising more often and eating healthier and I'm putting on weight. Could this be because the effects of the pill still haven't worn off or because of something else??