Optimization and generalization guarantees for overparameterized low-rank matrix reconstruction