WA Police are investigating an incident on a Perth train during which an off-duty officer restrained a 13-year-old girl.