Man gets jail, caning for raping girl previously in his care at children's home