Causation and functionalism in sociology