Geometric optimisation on positive definite matrices with application to elliptically contoured distributions