As far as Canada is concerned, yes you can do that, and you would still be considered a resident of Canada and keep your health care benefits and all that.
As far as the
UK is concerned, they may have an issue with that, since that seems like you are living there, and a visitors permit is designed for you to visit, temporarily. It does not entitle you to live there or set up ties there. I'm sure many people have done it, just saying that technically you could get blocked at immigration if they have reason to suspect that you have been living there illegally (you are illegally living there if you are LIVING THERE, even if you have a valid visitors visa). That being said, you probably wouldn't get pulled up on it until you'd been through the border several times, then they'd be able to see a pattern of you leaving, only temporarily but clearly living there, not just visiting as a tourist. I'm no expert on UK immigration though, if your question pertains to how this effects your status in the UK (as opposed to your status in Canada) you'd be better off posting in the appropriate UK forum.
Just be really aware that there is a massive difference between what you can TECHNICALLY do, by letter of the law, and what you'll actually be able to do. Customs officials do not have to go on technicalities, their job is subjective, and if they have any reason to believe that you MAY be doing something dodgy, they can and will block you from entering. They don't HAVE to let you in, it's a privilege for people to be able to travel in their country, not a right.