A Senedd member has criticised plans to close three leisure centres in Caerphilly.