Before you rush to buy new hardware, try these simple tricks to get your machine up to speed again – and keep it that way.