Swimmer Mellouli 'boycotts' Games, retires