On finite p-groups whose automorphisms are all central