A care facility for the elderly was told to improve its care standards after claims that a resident was sexually assaulted.