On the hydrodynamic impact problem for flat-bottomed bodies