17O NQR study of the ferroelectric phase transition in PbHPO4