Elastic constants of the hard-sphere glass: a density functional approach