Prevalence and factors influencing the occurrence of spasticity in stroke patients: a retrospective study