Antigravity in F(R) and Brans-Dicke theories