Peridynamic model of poroelasticity based on Hamilton's principle