A man who was in a drug-induced psychosis when he choked a nine-year-old Perth girl he had never met before is given a three-year jail term.