Marks and Spencer has posted an increase in annual profits but maintained a cautious outlook, citing pressure on disposable income and increasing commodity prices.