A care home where patients were given too much medication and harmful cleaning products were left unattended has been put in special measures.