Search for neutral Higgs bosons decaying to tau pairs in pp collisions at sqrt(s)=7 TeV