Scottish mansion apartment, once owned by a 20th century prime minister, is on the market for £2.4m