Search for resonant and nonresonant Higgs boson pair production in the b bbar final state in proton-proton collisions at sqrt(s)=13 TeV