A Generalized Least Squares Matrix Decomposition