My husband has lost interest in sex and prefers playing snooker

He is 45, I am 35 and our 12-year marriage has had its ups and downs. He goes out with the lads at least three times a week and most weekends. He says I should go alone if I want to go out. We have no children.
He started losing interest in sex last year. He says he’s past it yet he can be out until all hours with his mates and usually comes home the worse for wear.
He makes it all my fault, though, by saying that sex is all that’s important to me.
I’ve moved in with my sister but I can’t stop crying. He doesn’t even seem that bothered I’ve gone.