Restoration Hardware records losses in Q2