A care home where a resident went without prescribed medication for multiple nights because it ran out has been put in special measures.