Portfolio optimisation and option pricing in discrete time with transaction costs