Three-year-old changes gender from boy to girl after being sent to live with foster parents whose own son had just transitioned to become a female aged seven