Online mattress brands did well on Consumer Reports’ latest foam mattress rankings, taking several of the top spots on the list.