Anisotropic resistivity in the two-dimensional metal (La1−xSrx)2CuO4