Restrictions on induced subgraphs ensuring hamiltonicity or pancyclicity of K1,3-free graphs