Mean-field variational inference with the TAP free energy: Geometric and statistical properties in linear models