Yes, you can bring 6 months worth of medication over to the UK, providing this is also accompanied with a doctors note.
As soon as you arrive in the UK, you should register with a GP in your area to you can get a repeat script for you medication.
Most Airlines will state only 3 months worth of medication can be carried, but a doctors note can exempt you from this.