On sets of integers containing no four elements in arithmetic