A major scheme for new retirement flats as part of a 1,500-home development in Wantage has been refused by council planners.