Brad Pitt to quit acting in three years