SAN FRANCISCO (Reuters) - Hewlett-Packard Co will ramp up spending on research, sales and turning around its flagging services arm in 2012, after its fourth-quarter profit fell nearly 91 percent on weak computer sales.