Ferrari struggles with engine performance against Mercedes