Memory function for the response of conduction electrons in metals