I don't think you can get the internal clock to generate 5MHz so you will need an external clock source.
5MHz is not a speed the arduino core is written for so bootloader will need replacing with something to suit and other core functions like millis() will be wrong and this may effect some timings/libraries.