US stocks post worst year since 2008