On subgroups of finite p-groups