RIM Posts Loss, Will Leave Consumer Market