Searches for Higgs bosons in pp collisions at sqrt(s)=7 and 8 TeV in the context of four-generation and fermiophobic models