Crash between lorry and car on M4 caused long queues