Peru's President Pedro Pablo Kuczynski offered to resign on Wednesday after vote-buying allegations ensnared his centre-right government on the eve of an impeachment vote.