The family signature theorem