In bad weather, Trex posts sales, earnings declines