Non-inner automorphisms of order p in finite p-groups of coclass 3