Mattress Firm, the largest U.S. mattress retailer, is preparing to file for bankruptcy protection as soon as this week as it seek to exit costly store leases and shore up its business as retailers struggle, people familiar with the matter said on Tuesday.