Measurement of the B ->pi l nu branching fraction and determination of vertical bar V-ub vertical bar with tagged B mesons