Theory of activated rate processes for arbitrary frequency dependent friction: Solution of the turnover problem