Staffing levels “significantly impact” the use of antipsychotic medication, new research has found.