Astrophysical S-factor of the 3He(α,γ)7Be reaction measured at low energy via prompt and delayed gamma detection