A man who raped a 15-year-old girl after following her in a busy town centre has been jailed for nine years.