Millie Couzens won gold in the women's individual pursuit at the Track Cycling World Championships. She beat teammate Josie Knight in an all-British final in Shanghai.