A $q$-beta integral on the unit circle and some biorthogonal rational functions