Asymptotically optimal approximate Hadamard matrices