Team MMSE precoding with applications to cell-free massive MIMO