Search for relativistic magnetic monopoles with five years of the ANTARES detector data