The piston problem in hyperelasticity with the stored energy in separable form