A care home where people were forbidden from going into the garden - and one resident took up smoking just for something to do - has had its registration revoked amid safeguarding concerns.