X-ray and optical study of AgReO4 under pressure